<link rel="stylesheet" href="forum/forum_ext/ext_1/topic_list.css">
<div class="container">
	<div class="forum-topic-list-ext-1">
		<div class="row clearfix">
			<div class="col-md-12 column">
				<hr class="solid">
				<ul id="order_filter" class="nav nav-pills nav-pills-sm pull-right">
					<li><a href="javascript:do_order_filter(0)">时间</a></li>
					<li><a href="javascript:do_order_filter(1)">热度</a></li>                       
					<li><a href="javascript:do_order_filter(2)">订单</a></li>                       
				</ul>
				<ul id="digest_filter" class="nav nav-pills nav-pills-sm">
					<li><a href="javascript:do_digest_filter(0)">全部</a></li>
					<li><a href="javascript:do_digest_filter(1)">精华</a></li>                       
				</ul>
			</div>
			<?php if (1 == $page) { ?>
			<?php while($topic_top = mysql_fetch_array($topic_tops)) { ?>
			<div class="col-lg-4 col-sm-6">
				<div class="forum-topic">
					<div class="topic-icon" style="background-image:url('<?php echo $topic_top['icon_url'] ?>')"></div>
					<div class="subject">
						<p class="title">
						<?php if (1 == $topic_top['digest']) { ?><span class="glyphicon glyphicon-fire"></span> <?php } ?>
						<a target="_blank" href="<?php echo s_url('?c=forum&a=topic_show&topic_id='.$topic_top['id']) ?>"><?php echo $topic_top['title'] ?></a> 
						<?php echo (time()-24*3600 < $topic_top['l_r_at']) ? '<span class="label label-default">热</span>' : null ?>
						<?php echo (time()-24*3600 < $topic_top['c_at']) ? '<span class="label label-success">新</span>' : null ?>
						<?php echo (date('Ymd', time()) == $topic_top['today']) ? '<b class="label label-warning">'.$topic_top['today_up_c'].'</b>' : null ?>
						<span class="label label-danger">$ <?php echo intval($topic_top['pay']) ?></span>
						</p>
						<p class="price">
						<a class="btn btn-danger pull-right order-c-s" target="_blank" href="<?php echo s_url('?c=forum&a=topic_show&topic_id='.$topic_top['id']) ?>"> 看详情 </a>
						<b>¥<?php echo $topic_top['price'] ?></b> <small>¥<?php echo $topic_top['price_org'] ?></small>
						</p>
						<div class="num">
							<span>评价<b><?php echo $topic_top['reply_c'] ?></b></span>
							<span>查看<b><?php echo $topic_top['view_c'] ?></b></span>
						</div>
						<p class="info">
						最后评价：<a target="_blank" href="<?php echo s_url('?c=center&a=index&user_id='.$topic_top['l_r_user_id']) ?>"><?php echo $topic_top['l_r_user_name'] ?></a><span><a target="_blank" href="<?php echo s_url('?c=forum&a=to_topic_show_end&topic_id='.$topic_top['id']) ?>"><?php echo date("m-d H:i",$topic_top['l_r_at']) ?></a></span>
						</p>
					</div>
				</div>
			</div>
			<?php } ?>
			<?php } ?>
			<?php while($topic = mysql_fetch_array($topics)) { ?>
			<div class="col-lg-4 col-sm-6">
				<div class="forum-topic">
					<div class="topic-icon" style="background-image:url('<?php echo $topic['icon_url'] ?>')"></div>
					<div class="subject">
						<p class="title">
						<?php if (1 == $topic['digest']) { ?><span class="glyphicon glyphicon-fire"></span> <?php } ?>
						<a target="_blank" href="<?php echo s_url('?c=forum&a=topic_show&topic_id='.$topic['id']) ?>"><?php echo $topic['title'] ?></a> 
						<?php echo (time()-24*3600 < $topic['l_r_at']) ? '<span class="label label-default">热</span>' : null ?>
						<?php echo (time()-24*3600 < $topic['c_at']) ? '<span class="label label-success">新</span>' : null ?>
						<?php echo (date('Ymd', time()) == $topic['today']) ? '<b class="label label-warning">'.$topic['today_up_c'].'</b>' : null ?>
						<?php if (0 < $topic['pay']) { ?>
						<span class="label label-danger">$ <?php echo intval($topic['pay']) ?></span>
						<?php } ?>
						</p>
						<p class="price">
						<a class="btn btn-danger pull-right order-c-s" target="_blank" href="<?php echo s_url('?c=forum&a=topic_show&topic_id='.$topic['id']) ?>"> 看详情 </a>
						<b>¥<?php echo $topic['price'] ?></b> <small>¥<?php echo $topic['price_org'] ?></small>
						</p>
						<div class="num">
							<span>评价<b><?php echo $topic['reply_c'] ?></b></span>
							<span>查看<b><?php echo $topic['view_c'] ?></b></span>
						</div>
						<p class="info">
						最后评价：<a target="_blank" href="<?php echo s_url('?c=center&a=index&user_id='.$topic['l_r_user_id']) ?>"><?php echo $topic['l_r_user_name'] ?></a><span><a target="_blank" href="<?php echo s_url('?c=forum&a=to_topic_show_end&topic_id='.$topic['id']) ?>"><?php echo date("m-d H:i",$topic['l_r_at']) ?></a></span>
						</p>
					</div>
				</div>
			</div>
			<?php } ?>
		</div>
	</div>
</div>
